﻿using Coldairarrow.Entity.Base_AutoReplys;
using Coldairarrow.Util;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Business.Base_AutoReplys
{
    public interface IBase_AutoReplyBusiness
    {
        Task<PageResult<Base_AutoReply>> GetDataListAsync(PageInput<GetTSearchDTO> input);
        Task<Base_AutoReply> GetTheDataAsync(string id);
        Task<AutoReplyDTO> GetTheModelAsync(string id);
        Task AddDataAsync(Base_AutoReply data);
        Task UpdateDataAsync(Base_AutoReply data);
        Task DeleteDataAsync(List<string> ids);
    }

    public class AutoReplyDTO:Base_AutoReply
    {
        /// <summary>
        /// 子集选项
        /// </summary>
        public  List<Base_AutoReplyDetail> ChildList = new List<Base_AutoReplyDetail>();
    }

    public class GetTSearchDTO
    {
        public string TypeId { get; set; }
        public string Search { get; set; }
    }

}